$component = new CBitrixComponent(); $component->InitComponent('redesign:menu', 'mobile'); $component->initComponentTemplate(); $path = $component->__template->GetFolder();
$protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; $path = $protocol . $_SERVER['HTTP_HOST'] . SITE_TEMPLATE_PATH;